using System;
using System.Web;
using System.Text;
using System.Collections;
using GwtRpcNet.Service;

namespace com.mycompany.client
{
    public class TestService : GwtRpcNetRemoteService
    {
        public double doMath(int one, int two)
        {
            double pow = Math.Pow(one, two);
            return pow;
        }

        public string getSessionVar()
        {
            StringBuilder str = new StringBuilder();
            for (int i = 0; i < 10; i++)
            {
                str.Append("mark");
            }

            return str.ToString();
        }

        public string getPersonName(Person p)
        {
            return p.Name;
        }

        public string doList(IList l)
        {
            return "" + l.Count;
        }
    }
}
